package com.anycl.design.creation.singleton;

/**
 * 饿汉式
 */
public class Singleton2 {

    private static final Singleton2 instance = new Singleton2();

    private Singleton2(){

    }

    public Singleton2 getInstance() {
        return instance;
    }

}
